package mvc.struts.annotation.entity;

import java.util.Map;

import mvc.struts.annotation.util.CastUtil;

public class Param {

	private	Map<String, Object>	paramMap;
	
	public Param(Map<String, Object> paramMap)
	{
		this.paramMap = paramMap;
	}
	
	/**
	 * 
	 * @param name
	 * @return
	 */
	public long getLong(String name)
	{
		return	CastUtil.castLong(paramMap.get(name));
	}
	
	/**
	 * 
	 * @return
	 */
	public Map<String, Object> getMap()
	{
		return	paramMap;
	}
}
